package com.takanafu.haru.code.builtins{
	import com.takanafu.haru.code.CodeBase;
	import com.takanafu.haru.code.UseCallback;
	
	import mx.collections.ArrayCollection;
	import mx.controls.Alert;
	
	public class Confirm extends AbstractBuitin{
		public function Confirm(){
			super(3);
		}
		override public function exec(params:ArrayCollection):CodeBase{
			var msg:CodeBase = params.getItemAt(0) as CodeBase;
			var ttl:CodeBase = params.getItemAt(1) as CodeBase;
			var prm:CodeBase = params.getItemAt(2) as CodeBase;
			
			Alert.show("message","title",Alert.OK | Alert.CANCEL,null,thread.onEnterFrame);
			
			return new UseCallback();
		}
	}
}